package cn.edu.spark.core


import scala.collection.JavaConverters._

/**
 * Prints out environmental information.
 */
object EnvTest {
  def main(args: Array[String]): Unit = {

    val env = System.getenv().asScala

    println("Environment variables")
    env
      .filter {
        case (k, _) =>
          k == "Path"
      }
      .flatMap{
        case (k, v) =>
          v.split(";")
      }
      .foreach(println)

  }
}

